package org.example;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

import java.util.HashMap;

import static org.example.StudentManager.*;

public class TestMain {
    private static final Logger logger = LogManager.getLogger("TestMain");
    public static void main(String[] args) {
        //TODO 1、创建管理类实例
        logger.info("创建管理类实例");
        StudentManager manager = new StudentManager();

        //TODO 2、初始化管理系统，添加部分学生和课程信息
        logger.info("初始化管理系统，添加部分学生和课程信息");
        SystemInit systemInit = new SystemInit();
        systemInit.init(manager);

        manager.printAllInformation(STUDENT_HASHMAP);
        manager.printAllInformation(COURSE_HASHMAP);
        manager.printAllInformation(ELECTIVES_MAP);
        manager.studentDropCourse("009","CS005");
        manager.printAllInformation(ELECTIVES_MAP);
;    }
}
